package com.ideaaedi.zoo.commonbase.entity.excel;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * excel导入动态头
 *
 * @author <font size = "20" color = "#3CAA3C"><a href="https://gitee.com/JustryDeng">JustryDeng</a></font> <img
 * src="https://gitee.com/JustryDeng/shared-files/raw/master/JustryDeng/avatar.jpg" />
 * @since 1.0.5
 */
@Data
public class ExcelImportDynamicHeaderDTO {
    
    /**
     * excel头
     */
    @Schema(description = "excel头")
    private String header;
    
    /**
     * 快速创建
     */
    public static ExcelImportDynamicHeaderDTO create(String header) {
        ExcelImportDynamicHeaderDTO dynamicHeader = new ExcelImportDynamicHeaderDTO();
        dynamicHeader.setHeader(header);
        return dynamicHeader;
    }
}
